module.exports = {
	/**
	 * 这里是代理商专属菜单里，数据统计菜单下的投放链接数据统计，并不是管理投放链接
	 */
	main: async (event) => {
		let { data = {}, userInfo, util, filterResponse, originalParam } = event;
		let { customUtil, uniID, config, pubFun, vk, db, _ } = util;
		let { uid } = data;
		let res = { code: 0, msg: '' };
		// 业务逻辑开始-----------------------------------------------------------
		let dbName = "a_datas"; // 表名
		console.log("user_id=",userInfo._id);
		res = await vk.baseDao.getTableData({
			dbName,
			data,
			whereJson:{
				type:2,
				agent_id:userInfo._id,
			}
		});
		return res;
	}

}
